<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <!-- Always force latest IE rendering engine & Chrome Frame -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <title><?php echo lang('cp_admin_title') . ' - ' . $template['title'];?></title>

    <base href="<?php echo base_url(); ?>"/>

    <!-- Mobile Viewport Fix -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <script src="<?php echo js_path('jquery/jquery.min.js'); ?>"></script>
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->

    <?php file_partial('metadata'); ?>
</head>

<body>
<noscript>
    <span class="noscript">925CMS requires that JavaScript be turned on for many of the functions to work correctly. Please turn JavaScript on and reload the page.</span>
</noscript>
<div id="page-wrapper">
    <section id="sidebar" dir=<?php $vars = $this->load->_ci_cached_vars; echo $vars['lang']['direction']; ?>>
        <?php file_partial('header'); ?>
        <?php file_partial('navigation'); ?>
        <div id="lang-select">
            <form action="<?php echo current_url(); ?>" id="change_language" method="get">
                <select name="lang" onchange="this.form.submit();">
                    <option value="">-- Select Language --</option>
                    <?php foreach ($this->config->item('supported_languages') as $key => $lang): ?>
                    <option value="<?php echo $key; ?>" <?php echo CURRENT_LANGUAGE == $key ? 'selected="selected"'
                            : ''; ?>>
                        <?php echo $lang['name']; ?>
                    </option>
                    <?php endforeach; ?>
                </select>

            </form>
        </div>

        <footer>
            Copyright &copy; 2010 925CMS<br/>
            Version <?php echo CMS_VERSION . ' ' . CMS_EDITION; ?><br/>
            Rendered in {elapsed_time} sec. using {memory_usage}.
        </footer>
    </section>
    <section id="content-wrapper">
        <header id="page-header">
            <h1><?php echo $module_details['name'] ? anchor('admin/' . $module_details['slug'], $module_details['name'])
                    : lang('cp_admin_home_title'); ?></h1>

            <p><?php echo $module_details['description'] ? $module_details['description'] : ''; ?></p>
            <?php if ($module_details['slug']): ?>
            <p id="page-header-help"><?php echo anchor('admin/help/' . $module_details['slug'], '?', array('title' => lang('help_label') . '->' . $module_details['name'], 'class' => 'modal')); ?></p>
            <?php endif; ?>
        </header>

        <?php template_partial('shortcuts'); ?>

        <?php template_partial('filters'); ?>

        <?php file_partial('notices'); ?>

        <div id="content">
            <?php echo $template['body']; ?>
        </div>
    </section>
</div>
</body>
</html>